Linux 安装mysqlclient

centos安装 mysqlclient失败,需先安装

yum install mysql-devel


pip install mysqlclient

ubuntu

apt-get install libmysqlclient-dev python3-dev